# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo03
# Description:
# Author:       98745
# Date:         2019/3/7
#-------------------------------------------------------------------------------

import re
s='bill|mike|john'
m=re.match(s,'bill')
if m is not None:
    print(m.group())

m=re.match(s,'bill:my friend')
if m is not None:
    print(m.group())

m=re.search(s,'where is mike')
if m is not None:
    print(m.group())
print(m)